Integrand size = 23, antiderivative size = 427 \[ \int \frac {\sec ^5(c+d x)}{(a+b \sec (c+d x))^{5/2}} \, dx=\frac {8 a \left (4 a^4-7 a^2 b^2+2 b^4\right ) \cot (c+d x) E\left (\arcsin \left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{3 (a-b) b^5 (a+b)^{3/2} d}+\frac {2 \left (16 a^4+12 a^3 b-16 a^2 b^2-9 a b^3-b^4\right ) \cot (c+d x) \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{3 (a-b) b^4 (a+b)^{3/2} d}-\frac {2 a^2 \sec ^2(c+d x) \tan (c+d x)}{3 b \left (a^2-b^2\right ) d (a+b \sec (c+d x))^{3/2}}+\frac {4 a^3 \left (3 a^2-5 b^2\right ) \tan (c+d x)}{3 b^3 \left (a^2-b^2\right )^2 d \sqrt {a+b \sec (c+d x)}}+\frac {2 \left (2 a^2-b^2\right ) \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{3 b^3 \left (a^2-b^2\right ) d} \]
[Out]
Time = 1.11 (sec) , antiderivative size = 427, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.261, Rules used = {3930, 4175, 4167, 4090, 3917, 4089} \[ \int \frac {\sec ^5(c+d x)}{(a+b \sec (c+d x))^{5/2}} \, dx=-\frac {2 a^2 \tan (c+d x) \sec ^2(c+d x)}{3 b d \left (a^2-b^2\right ) (a+b \sec (c+d x))^{3/2}}+\frac {2 \left (2 a^2-b^2\right ) \tan (c+d x) \sqrt {a+b \sec (c+d x)}}{3 b^3 d \left (a^2-b^2\right )}+\frac {8 a \left (4 a^4-7 a^2 b^2+2 b^4\right ) \cot (c+d x) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} E\left (\arcsin \left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{3 b^5 d (a-b) (a+b)^{3/2}}+\frac {4 a^3 \left (3 a^2-5 b^2\right ) \tan (c+d x)}{3 b^3 d \left (a^2-b^2\right )^2 \sqrt {a+b \sec (c+d x)}}+\frac {2 \left (16 a^4+12 a^3 b-16 a^2 b^2-9 a b^3-b^4\right ) \cot (c+d x) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right )}{3 b^4 d (a-b) (a+b)^{3/2}} \]
[In]
[Out]
Rule 3917
Rule 3930
Rule 4089
Rule 4090
Rule 4167
Rule 4175
Rubi steps \begin{align*} \text {integral}& = -\frac {2 a^2 \sec ^2(c+d x) \tan (c+d x)}{3 b \left (a^2-b^2\right ) d (a+b \sec (c+d x))^{3/2}}-\frac {2 \int \frac {\sec ^2(c+d x) \left (2 a^2-\frac {3}{2} a b \sec (c+d x)-\frac {3}{2} \left (2 a^2-b^2\right ) \sec ^2(c+d x)\right )}{(a+b \sec (c+d x))^{3/2}} \, dx}{3 b \left (a^2-b^2\right )} \\ & = -\frac {2 a^2 \sec ^2(c+d x) \tan (c+d x)}{3 b \left (a^2-b^2\right ) d (a+b \sec (c+d x))^{3/2}}+\frac {4 a^3 \left (3 a^2-5 b^2\right ) \tan (c+d x)}{3 b^3 \left (a^2-b^2\right )^2 d \sqrt {a+b \sec (c+d x)}}-\frac {4 \int \frac {\sec (c+d x) \left (\frac {1}{2} a^2 b \left (3 a^2-5 b^2\right )+\frac {1}{2} a \left (6 a^4-11 a^2 b^2+3 b^4\right ) \sec (c+d x)-\frac {3}{4} b \left (a^2-b^2\right ) \left (2 a^2-b^2\right ) \sec ^2(c+d x)\right )}{\sqrt {a+b \sec (c+d x)}} \, dx}{3 b^3 \left (a^2-b^2\right )^2} \\ & = -\frac {2 a^2 \sec ^2(c+d x) \tan (c+d x)}{3 b \left (a^2-b^2\right ) d (a+b \sec (c+d x))^{3/2}}+\frac {4 a^3 \left (3 a^2-5 b^2\right ) \tan (c+d x)}{3 b^3 \left (a^2-b^2\right )^2 d \sqrt {a+b \sec (c+d x)}}+\frac {2 \left (2 a^2-b^2\right ) \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{3 b^3 \left (a^2-b^2\right ) d}-\frac {8 \int \frac {\sec (c+d x) \left (\frac {3}{8} b^2 \left (4 a^4-7 a^2 b^2-b^4\right )+\frac {3}{2} a b \left (4 a^4-7 a^2 b^2+2 b^4\right ) \sec (c+d x)\right )}{\sqrt {a+b \sec (c+d x)}} \, dx}{9 b^4 \left (a^2-b^2\right )^2} \\ & = -\frac {2 a^2 \sec ^2(c+d x) \tan (c+d x)}{3 b \left (a^2-b^2\right ) d (a+b \sec (c+d x))^{3/2}}+\frac {4 a^3 \left (3 a^2-5 b^2\right ) \tan (c+d x)}{3 b^3 \left (a^2-b^2\right )^2 d \sqrt {a+b \sec (c+d x)}}+\frac {2 \left (2 a^2-b^2\right ) \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{3 b^3 \left (a^2-b^2\right ) d}+\frac {\left (16 a^4+12 a^3 b-16 a^2 b^2-9 a b^3-b^4\right ) \int \frac {\sec (c+d x)}{\sqrt {a+b \sec (c+d x)}} \, dx}{3 (a-b) b^3 (a+b)^2}-\frac {\left (4 a \left (4 a^4-7 a^2 b^2+2 b^4\right )\right ) \int \frac {\sec (c+d x) (1+\sec (c+d x))}{\sqrt {a+b \sec (c+d x)}} \, dx}{3 b^3 \left (a^2-b^2\right )^2} \\ & = \frac {8 a \left (4 a^4-7 a^2 b^2+2 b^4\right ) \cot (c+d x) E\left (\arcsin \left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{3 (a-b) b^5 (a+b)^{3/2} d}+\frac {2 \left (16 a^4+12 a^3 b-16 a^2 b^2-9 a b^3-b^4\right ) \cot (c+d x) \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{3 (a-b) b^4 (a+b)^{3/2} d}-\frac {2 a^2 \sec ^2(c+d x) \tan (c+d x)}{3 b \left (a^2-b^2\right ) d (a+b \sec (c+d x))^{3/2}}+\frac {4 a^3 \left (3 a^2-5 b^2\right ) \tan (c+d x)}{3 b^3 \left (a^2-b^2\right )^2 d \sqrt {a+b \sec (c+d x)}}+\frac {2 \left (2 a^2-b^2\right ) \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{3 b^3 \left (a^2-b^2\right ) d} \\ \end{align*}
Time = 13.95 (sec) , antiderivative size = 578, normalized size of antiderivative = 1.35 \[ \int \frac {\sec ^5(c+d x)}{(a+b \sec (c+d x))^{5/2}} \, dx=\frac {4 (b+a \cos (c+d x))^2 \sec ^{\frac {5}{2}}(c+d x) \sqrt {\cos ^2\left (\frac {1}{2} (c+d x)\right ) \sec (c+d x)} \left (4 a \left (4 a^5+4 a^4 b-7 a^3 b^2-7 a^2 b^3+2 a b^4+2 b^5\right ) \sqrt {\frac {\cos (c+d x)}{1+\cos (c+d x)}} \sqrt {\frac {b+a \cos (c+d x)}{(a+b) (1+\cos (c+d x))}} E\left (\arcsin \left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {a-b}{a+b}\right )+b \left (-16 a^5-4 a^4 b+28 a^3 b^2+7 a^2 b^3-8 a b^4+b^5\right ) \sqrt {\frac {\cos (c+d x)}{1+\cos (c+d x)}} \sqrt {\frac {b+a \cos (c+d x)}{(a+b) (1+\cos (c+d x))}} \operatorname {EllipticF}\left (\arcsin \left (\tan \left (\frac {1}{2} (c+d x)\right )\right ),\frac {a-b}{a+b}\right )+2 a \left (4 a^4-7 a^2 b^2+2 b^4\right ) \cos (c+d x) (b+a \cos (c+d x)) \sec ^2\left (\frac {1}{2} (c+d x)\right ) \tan \left (\frac {1}{2} (c+d x)\right )\right )}{3 b^4 \left (a^2-b^2\right )^2 d \sqrt {\sec ^2\left (\frac {1}{2} (c+d x)\right )} (a+b \sec (c+d x))^{5/2}}+\frac {(b+a \cos (c+d x))^3 \sec ^3(c+d x) \left (-\frac {8 a \left (4 a^4-7 a^2 b^2+2 b^4\right ) \sin (c+d x)}{3 b^4 \left (-a^2+b^2\right )^2}-\frac {2 a^3 \sin (c+d x)}{3 b^2 \left (-a^2+b^2\right ) (b+a \cos (c+d x))^2}-\frac {2 \left (-7 a^5 \sin (c+d x)+11 a^3 b^2 \sin (c+d x)\right )}{3 b^3 \left (-a^2+b^2\right )^2 (b+a \cos (c+d x))}+\frac {2 \tan (c+d x)}{3 b^3}\right )}{d (a+b \sec (c+d x))^{5/2}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(5025\) vs. \(2(393)=786\).
Time = 14.62 (sec) , antiderivative size = 5026, normalized size of antiderivative = 11.77
[In]
[Out]
\[ \int \frac {\sec ^5(c+d x)}{(a+b \sec (c+d x))^{5/2}} \, dx=\int { \frac {\sec \left (d x + c\right )^{5}}{{\left (b \sec \left (d x + c\right ) + a\right )}^{\frac {5}{2}}} \,d x } \]
[In]
[Out]
\[ \int \frac {\sec ^5(c+d x)}{(a+b \sec (c+d x))^{5/2}} \, dx=\int \frac {\sec ^{5}{\left (c + d x \right )}}{\left (a + b \sec {\left (c + d x \right )}\right )^{\frac {5}{2}}}\, dx \]
[In]
[Out]
Timed out. \[ \int \frac {\sec ^5(c+d x)}{(a+b \sec (c+d x))^{5/2}} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {\sec ^5(c+d x)}{(a+b \sec (c+d x))^{5/2}} \, dx=\int { \frac {\sec \left (d x + c\right )^{5}}{{\left (b \sec \left (d x + c\right ) + a\right )}^{\frac {5}{2}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\sec ^5(c+d x)}{(a+b \sec (c+d x))^{5/2}} \, dx=\int \frac {1}{{\cos \left (c+d\,x\right )}^5\,{\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right )}^{5/2}} \,d x \]
[In]
[Out]